package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author morningbear
 * @date 2019/7/11
 * @description 工单类
 * 包括工人id，预定订单id，维修单id，工单类型，工单状态
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_work_order")
public class WorkOrder extends BaseEntity {

    /**
     * 工人编号
     */
    @Column(name = "worker_id")
    private Long workerId;

    /**
     * 工单编号
     */
    @Column(name = "order_id")
    private Long orderId;

    /**
     * 工单状态
     */
    @Column(name = "status")
    private String status;

    /**
     * 工单类型
     */
    @Column(name = "work_type")
    private String workType;
}
